// This file is needed to check how unmemoized (by ts plugin) should look like
// It is not actually executed

import { GlobalStateManager, memoEntry, StateContext } from "@koalaui/runtime"
import { memo_foo } from "./stub"

/** @memo */
function foo_wrapper() {
    memo_foo("hello")
}

function main() {
    const manager = GlobalStateManager.instance
    const state = manager.computableState((context: StateContext) => {
        memoEntry<void>(context, 0, foo_wrapper)
        return 20
    })
    console.log(state.value)
}
